# Map Printer by edead
# from Consts import iMapHeight, iMapWidth
from CvPythonExtensions import *
gc = CyGlobalContext()

iMapHeight = 71
iMapWidth = 74

def kakka():
    for x in range(10):
        print x

def printmap(bPeaks=True):
	for y in range(iMapHeight-1, -1, -1):
		row = ''
		for x in range(iMapWidth):
			plot = gc.getMap().plot(x,y)
			if plot.isWater(): row += '0;'
			else:
				if bPeaks and plot.isPeak(): row += '2;'
				else: row += '1;'
		print(row)